package com.macro.mall.model;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class PmServerSpec implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "父节点")
    private Long parentId;

    @ApiModelProperty(value = "祖先节点")
    private String ancestors;

    @ApiModelProperty(value = "规格名称")
    private String serverSpecName;

    @ApiModelProperty(value = "级别")
    private Integer serverSpecLevel;

    @ApiModelProperty(value = "描述")
    private String serverSpecDesc;

    @ApiModelProperty(value = "顺序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    private List<PmServerSpecPic> picList;

    private String picMainStr;
    private String picListStr;

    public String getPicMainStr() {
        return picMainStr;
    }

    public void setPicMainStr(String picMainStr) {
        this.picMainStr = picMainStr;
    }

    public String getPicListStr() {
        return picListStr;
    }

    public void setPicListStr(String picListStr) {
        this.picListStr = picListStr;
    }

    public List<PmServerSpecPic> getPicList() {
        return picList;
    }

    public void setPicList(List<PmServerSpecPic> picList) {
        this.picList = picList;
    }

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getServerSpecName() {
        return serverSpecName;
    }

    public void setServerSpecName(String serverSpecName) {
        this.serverSpecName = serverSpecName;
    }

    public Integer getServerSpecLevel() {
        return serverSpecLevel;
    }

    public void setServerSpecLevel(Integer serverSpecLevel) {
        this.serverSpecLevel = serverSpecLevel;
    }

    public String getServerSpecDesc() {
        return serverSpecDesc;
    }

    public void setServerSpecDesc(String serverSpecDesc) {
        this.serverSpecDesc = serverSpecDesc;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", parentId=").append(parentId);
        sb.append(", ancestors=").append(ancestors);
        sb.append(", serverSpecName=").append(serverSpecName);
        sb.append(", serverSpecLevel=").append(serverSpecLevel);
        sb.append(", serverSpecDesc=").append(serverSpecDesc);
        sb.append(", sort=").append(sort);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}